<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<% String adminName = request.getParameter("adminName");%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>药品查询</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script src="<%=basePath%>js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="<%=basePath%>js/flexigrid.pack.js"></script>
    <script src="<%=basePath%>js/jExpand.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/flexigrid.pack.css"/>
    <link rel="stylesheet" href="<%=basePath%>css/style.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="<%=basePath%>css/slide.css" type="text/css" media="screen"/>

    <!-- Sliding effect -->
    <script src="<%=basePath%>js/slide.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#flexme1").jExpand();
            $('#flexme1').flexigrid({
//                width: 'auto',
                height: 'auto'
            });
            var search = document.getElementById("search").getAttribute("value");
            if (search == "") {
                $("#nihao").css("display", "none");
            }
        });
    </script>
</head>

<body>
<%@ include file="/page/share/login.jsp" %>
<div id="container">
    <div id="content" style="padding-top:150px;">
        <div class="newsletter_area">
            <div id="msgemail2"></div>
            <form id="f_sending3" name="f_sending3" action="Medicine!fuzzySearch.action" method="post">
                <input type="hidden" name="flag" id="flag" value="user  "/>
                <label for="value"></label>
                <input name="value" class="email required" value="请输入搜索内容"
                       id="value" onmouseover="this.select();" type="text">
                <input id="newsletter_submit" value="" type="submit">
            </form>
        </div>
        <input type="hidden" name="search" id="search" value="${search}"/>
        <table id="flexme1">
            <thead>
            <tr id="nihao">
                <th width="30">序号</th>
                <th width="215">药品名称</th>
                <th width="265">药品英文名</th>
                <th width="70">分类</th>
                <th width="168">药品类别</th>
            </tr>
            </thead>
            <tbody>
            <s:iterator value="medicines" var="m" status="n">
                <tr>
                    <td><s:property value="#n.index+1"/></td>
                    <td>${m.medicineName}</td>
                    <td>${m.medicineEnglishName}</td>
                    <td>${m.type}</td>
                    <td>${m.sort}</td>
                </tr>
                <tr>
                    <td colspan="5">
                        <ul>
                            性状：
                            <li>${m.characters}&nbsp;</li>
                        </ul>
                        <ul>
                            用量用法：
                            <li>${m.dosage}&nbsp;</li>
                        </ul>
                        <ul>
                            适应症：
                            <li>${m.adaptation}&nbsp;</li>
                        </ul>
                        <ul>
                            成分：
                            <li>${m.components}&nbsp;</li>
                        </ul>
                        <ul>
                            不良反应：
                            <li>${m.sideEffects}&nbsp;</li>
                        </ul>
                        <ul>
                            禁忌：
                            <li>${m.taboo}&nbsp;</li>
                        </ul>
                        <ul>
                            注意事项：
                            <li>${m.caution}&nbsp;</li>
                        </ul>
                    </td>
                </tr>
            </s:iterator>
            </tbody>
        </table>
    </div>

</div>

</body>
</html>
